package company.XW;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class XW1 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<String> result = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            int appleTrees = sc.nextInt();
            int allowTress = sc.nextInt();
            int oddNum = 0;
            int evenNum = 0;
            for (int j = 0; j < appleTrees; j++) {
                if (sc.nextInt() % 2 == 1)
                    oddNum++;
                else
                    evenNum++;
            }
            if (appleTrees < allowTress) {
                result.add("No");
                continue;
            }
            boolean flag = false;
            for (int j = 1; j <= allowTress; j += 2) {
                if (oddNum >= j && evenNum >= (allowTress - j)) {
                    flag = true;
                    break;
                }
            }
            result.add(flag ? "Yes" : "No");
        }
        for (String s : result) {
            System.out.println(s);
        }
    }
}
